Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Conversation

@xiangj5x
Copy link

Call DevicePolicyManager.requestBugreport() in device owner,
the service 'bugreport' killed by signal 1.

Jira: None
Test: Call DevicePolicyManager.requestBugreport() in device owner,and get reports success.

Signed-off-by: xiangj5x xiangjunx.jiang@intel.com

@android-ia-srv
Copy link

Commit message is verified for commit id: e141ed7

Call DevicePolicyManager.requestBugreport() in device owner,
the service 'bugreport' killed by signal 1.

This process exit in below code in dumpstate.cpp because the value of do_zip_file is false when is_remote_mode
is true.
if (is_remote_mode && (ds.update_progress_ || !do_broadcast || !do_zip_file || !do_add_date)) {
      ExitOnInvalidArgs();
}

before android 8.0,the remotebugreport is designed as below:
service bugreportremote /system/bin/dumpstate -d -q -B -R -z \
        -o /data/user_de/0/com.android.shell/files/bugreports/remote/bugreport
but have changed using extra_options_ == "bugreportremote" for distinguish from android 8.0,
miss -z(do_zip_file) premeter when call remotebugreport.

Jira: None
Test: Call DevicePolicyManager.requestBugreport() in device owner,and get reports success.

Signed-off-by: xiangj5x <xiangjunx.jiang@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants